package cn.hzxs.zjn.studentmanagement.sevice;

import cn.hzxs.zjn.studentmanagement.domain.User;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @Author: Zjn ; Bring it on !!!
 * @Date: 2021/3/23 0023 15:10
 * Note:
 */
public interface UserService {
    /*------------------登录功能---------------------*/
    Map findUserIdByPhone(String phone);
    Map findUserIdByUserName(String username);

    Integer ifExistUsername(String username);
    Integer ifExistPhone(String phone);

    String findPasswordByUsername(String username);
    String findPasswordByPhone(String phone);



    /*-------------------注册功能------------------*/
    void userReg(User user);

    /*-------------------查询----------------------*/
    Map<String,String> findUsernameIconByAuthorId(Integer author_id);


    /*查询所有用户*/
    List<Map> userGet();

    /*通过用户ID查询用户*/
    Map personal(Integer userId);

    List<Map> teacher_planGet();
}
